<template>
  <div>
    父级传入的数据：<br>
    name: {{$attrs.name}} <br>
    age: {{$attrs.age}} <br>
    obj: {{$attrs.obj}} <br>
    <button @click="$listeners.do">父级传入的事件</button>
    <SonOfSon v-bind="$attrs" v-on="$listeners"></SonOfSon>
  </div>
</template>

<script>
  import SonOfSon from './SonOfSon'
  export default {
    name: "Son",
    components: {
      SonOfSon
    },
    created() {
      console.log(this.$attrs, this.$listeners)
    }
  }
</script>

<style scoped>

</style>
